package lhdx2;

import java.util.Scanner;

public class Mimaguanli {
    String yonghu;
    int mima;
    String yonghus;
    int mimas;
    public void   yhff() {
        Scanner in = new Scanner(System.in);
        for (;;) {
            if (yonghu.equals(yonghus) && mima ==mimas)
                return;
            System.out.println("用户名和密码不匹配，请重新输入。");
            System.out.print("请输入用户名：");
            yonghu=in.next();
            System.out.print("请输入密码：");
            mima=in.nextInt();
        }
    }
}
